<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?

$data = array("subject_id"=>"$subject_id",
			  	   "subject_name"=>$_POST['subject_name'],
				   "subject_detail"=>$_POST['subject_detail']);

$dbfunc->insert("tb_subject",$data);

echo "<script>alert('ระบบได้บันทึกข้อมูลของคุณแล้วค่ะ');</script>";
echo $func->redirect("0","?module=admin&page=frm_mag_subject");
?>